<?php
declare (strict_types = 1);

namespace app\middleware;

use app\BaseController;
use app\Request;
use Closure;
use think\response\Json;

class Login
{
    /**
     * 处理请求
     * @param Request $request
     * @param Closure $next
     * @return mixed|Json
     */
    public function handle(Request $request, Closure $next)
    {


        if ($request->users_id==0){
           writeJson(100,'重新登陆');
        }
        return $next($request);
    }
}
